package com.stefan.lession06;

import javax.swing.*;
import java.awt.*;

public class TestComboboxDemo01 extends JFrame {

    public TestComboboxDemo01() {
        Container container = this.getContentPane();

        JComboBox<Object> jComboBox = new JComboBox<>();
        jComboBox.addItem(null);
        jComboBox.addItem("热映");
        jComboBox.addItem("已下架");
        jComboBox.addItem("即将上映");

//        jComboBox.addActionListener();

        container.add(jComboBox);

        this.setVisible(true);
        this.setSize(500,400);
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {
        new TestComboboxDemo01();
    }
}
